package com.jic.weamop.utils;


import org.apache.commons.lang.RandomStringUtils;

import java.text.SimpleDateFormat;
import java.util.*;

public class CardUtils {

    public static List<String> random(String code,Integer integer){
        List<String> list = new ArrayList<>();
        for (int i = 0;i<integer;i++){
            SimpleDateFormat sdf = new SimpleDateFormat("yyyyMMddHHmmss");
            String format = sdf.format(new Date());
            String str_m = String.valueOf((i+1));
            String str ="000000";
            str_m=str.substring(0, 6-str_m.length())+str_m;
            list.add(code+format+str_m);
        }
        return list;
    }
}
